package com.zhuifeng.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuifeng.common.core.annotation.Excel;
import com.zhuifeng.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 product_rule_attr
 * 
 * @author zhuifeng
 * @date 2022-08-24
 */
public class ProductRuleAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String productRuleAttrId;

    /** 规格 */
    @Excel(name = "规格")
    private String productRuleId;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String name;

    /** 规格值 */
    @Excel(name = "规格值")
    private String attrValue;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    public void setProductRuleAttrId(String productRuleAttrId) 
    {
        this.productRuleAttrId = productRuleAttrId;
    }

    public String getProductRuleAttrId() 
    {
        return productRuleAttrId;
    }
    public void setProductRuleId(String productRuleId) 
    {
        this.productRuleId = productRuleId;
    }

    public String getProductRuleId() 
    {
        return productRuleId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAttrValue(String attrValue) 
    {
        this.attrValue = attrValue;
    }

    public String getAttrValue() 
    {
        return attrValue;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }
    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public String getCreateBy()
    {
        return createBy;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productRuleAttrId", getProductRuleAttrId())
            .append("productRuleId", getProductRuleId())
            .append("name", getName())
            .append("attrValue", getAttrValue())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
